package com.dkm.ec.sale.repository;

import java.util.List;
import java.util.Map;

import com.dkm.base.api.model.Page;
import com.dkm.biz.repository.IRepository;
import com.dkm.ec.sale.domain.SaleEntity;
import com.dkm.ec.sale.persistence.entity.SaleEntityPo;
import com.dkm.ec.sale.persistence.entity.SaleProdPo;
/**
 * 对象功能:销售产品实体 Repository接口
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2015-01-16 15:23:27
 */
public interface SaleEntityRepository extends IRepository<String, SaleEntityPo,SaleEntity>{
	  public SaleEntityPo getByKey(String key);

	public List<SaleEntityPo> findProdRec(String userId, String productId,
			Integer count);
	public List<SaleProdPo> findProdByUpdateTime(String startTime,String endTime,Page page);
	
	public int findProdByUpdateTimeCount(String startTime,String endTime);
	
	public List<SaleEntityPo> find2(Map<String,Object> paraMap);

/*	public List<SaleEntityPo> findByRequst(String cateId, String requestType, Page page);*/

	public List<SaleEntityPo> findProductRec(String indexProduct);

	public List<SaleEntityPo> findShopProduct(String shopId);

	public List<SaleEntityPo> findShopProductByOther(String saleName, String ShopId, Page page, String type, String order,
			String object2, String shopName);


	
}
